//
//  IDCViewController.m
//  CSV File Reader
//
//  Created by iD Student on 7/17/13.
//  Copyright (c) 2013 jasonkurtzman. All rights reserved.
//

#import "IDCViewController.h"

@interface IDCViewController ()

@end

@implementation IDCViewController
@synthesize textView;
- (void)viewDidLoad
{
    [super viewDidLoad];
    
    //Get the bundle path for plist file
    NSString *str = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"Information.plist"];
    
    //Read the contents of the plist dictionary
    NSDictionary *tempDict = [[NSDictionary alloc] initWithContentsOfFile:str];
    
    //Dictionary to NSArray
    NSArray *layersArray = [tempDict objectForKey:@"Modal 1"];
    
    //Display Array Data
    //NSLog(@"MyArray: %@", layersArray);
    
    NSString *obj = [layersArray objectAtIndex:0];
    
    textView.text = [obj stringByReplacingOccurrencesOfString:@"\\n" withString:@"\n\n"];
    
    
	// Do any additional setup after loading the view, typically from a nib.
}

-(IBAction)buttonClicked
{
    
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
